<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>角色列表</title>
   <link href="${basePath}/admin/css/base.css" type="text/css" rel="stylesheet">
</head>
<body>
	
<div id="container" style="background:#f2ffe3 url(${basePath}/admin/images/main_00.jpg) left top repeat-x;">
      <table class="dataTable">
          <tr align="left">
	          <th>ID</th>
	          <th>排行榜名称</th>
	          <th>排序号</th>
	          <th>所属厂商</th>
	          <th>游戏名称</th>
	          <th>上线时间</th>
	          <th>评分</th>
	          <th>Android下载量</th>
	          <th>IOS下载量</th>
	          <th>是否免费</th>
	          <th>操作</th>
          </tr>
          <#list members.list as m>
	          <tr>
		          <td>${m.rank_id!}</td>
		          <td>${m.rank_name!}</td>
		          <td>
		          	<form action="${basePath}/admin/rank/sort">
		          		<input type="hidden" name="rank_id" value="${m.rank_id!}"/>
		          		<input type="hidden" name="game_id" value="${m.game_id!}"/>
		          		<input type="text" size="10" name="sort_id" value="${m.sort_id!}" style="border: 1px solid; border-color: #CCC #EEE #EEE #CCC;"/>
		          		<input type="submit" class="button_50" value="修改"/>
		          	</form>
		          	
		          </td>
		          <td>${m.username!}</td>
		          <td>${m.game_name!}</td>
		          <td>${m.online_time?string('yyyy-MM-dd HH:mm:ss')}</td>
		          <td>${m.grade!}</td>
		          <td>${m.apk_downs!0}</td>
		          <td>${m.ios_downs!0}</td>
		          <td><#if m.price gt 0>收费(${m.price!})<#else>免费</#if></td>
		          <td>
		          	<a href="${basePath}/admin/rank/rankDel?rank_id=${m.rank_id!}&game_id=${m.game_id!}" onclick="return confirm('你确认要删除这条记录?')">删除</a>
		          </td>
	          </tr>
          </#list>
   	</table>
	<#include "./common/_paginate_admins.html" />
	<@paginate currentPage = members.pageNumber totalPage = members.totalPage actionUrl = "/admin/rank/members?id=${rank_id!}" />
</div>
</body>
</html>